Skip to content

Conversation

jbrockmendel
Copy link
Member

The dtype-finding code in internals.concat is something else. Tried untangling it, but now I think we can make it unnecessary altogether. This is the first step in that process.

def _get_default_fill_value(dtype, fill_value):
if fill_value is lib.no_default:
if is_extension_array_dtype(dtype):
fill_value = dtype.na_value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

na_value_for_dtype

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thats what i thought too, but its behavior is slightly different

@jreback jreback added Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Refactor Internal refactoring of code labels Jan 28, 2021
@jreback jreback added this to the 1.3 milestone Feb 1, 2021
@jreback jreback merged commit a9c803c into pandas-dev:master Feb 1, 2021
@jreback
Copy link
Contributor

jreback commented Feb 1, 2021

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants